import Vue from 'vue'
import Vuex from 'vuex'

Vue.vue(Vuex)

const store = new Vuex.Store({
    state:{
        singer:{}
    },
    mutations:{
        setSinger(state,singer){
            state.singer = singer
        }
    },
    getters:{
        // singer: statr => state.singer
        singer: (state)=>{
            return state.singer
        }
    },
    actions:{

    },
    modules:{

    }
})

export default store